<?php
require_once(dirname(__FILE__) . "/../../jdcr/php/gen/DBConfig.inc.php");

$dbConnections["mysql"] = new DBConfig("mysql","dbmy0106.whservidor.com","weboportun_1","weboportun_1","d1d2f3b4");
$dbConnections["pgsql"] = new DBConfig("pgsql","localhost","zolm","zolm","123456");

define("MAILFROM","zolm@gscpe.com.br");

if ($_SERVER["SERVER_NAME"] == "localhost") {
  define("CURRENT_DRIVER","pgsql");  
} else {
  define("CURRENT_DRIVER","mysql");
}

function dbConfig() {
  global $dbConnections;
  return $dbConnections[CURRENT_DRIVER];
}
?>
